package net.oschina.kjtang.qywx.common.service.impl;

import net.oschina.kjtang.qywx.common.entity.Entity;
import net.oschina.kjtang.qywx.common.exception.RCodeException;
import net.oschina.kjtang.qywx.common.service.BaseService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by kjtang on 2017/12/1.
 */
@Transactional
public class BaseServiceImpl<T extends Entity> implements BaseService<T> {

    protected Logger logger = LoggerFactory.getLogger(BaseServiceImpl.class);

    @Override
    public void add(T entity) throws RCodeException {

    }

    @Override
    public void modify(T entity) throws RCodeException {

    }

    @Override
    public void delete(T entity) throws RCodeException {

    }

    @Override
    public T get(T entity) throws RCodeException {
        return null;
    }

    @Override
    public List getList(T entity) throws RCodeException {
        return null;
    }
}
